package com.ler.yrmall.coupon.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ler.yrmall.basic.BaseAssignKey;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author Leron
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sms_seckill_sku_relation")
public class SeckillSkuRelationEntity extends BaseAssignKey<SeckillSkuRelationEntity> {

    /**
     * id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long seckillId;

    /**
     * skuId
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;

    /**
     * 秒杀价格
     */
    private BigDecimal price;

    /**
     * 秒杀数量
     */
    private Integer count;

    /**
     * 限购数量
     */
    private Integer limited;

    /**
     * 排序
     */
    private Integer sort;

}
